package com.ruoyi.record.service.impl;

import com.ruoyi.record.domain.SummaryRecord;
import com.ruoyi.record.domain.query.SummaryRecordQuery;
import com.ruoyi.record.mapper.SummaryRecordMapper;
import com.ruoyi.record.service.SummaryRecordService;
import com.ruoyi.system.service.ISysConfigService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

/**
 *
 * @author helen
 * @date 2024/02/19 14:40
 */
@Service
public class SummaryRecordServiceImpl implements SummaryRecordService {

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private SummaryRecordMapper summaryRecordMapper;
    @Autowired
    private ISysConfigService sysConfigService;


    /**
     * 查询汇总信息
     *
     * @param summaryQuery
     */
    @Override
    public SummaryRecord selectSummaryRecordByYear(SummaryRecordQuery summaryQuery) {

        SummaryRecord summaryRecord = summaryRecordMapper.selectSummaryRecordByYear(summaryQuery);
        Assert.notNull(summaryRecord, "查询汇总记录为空！");
        return summaryRecord;
    }




}
